﻿namespace Photo.Core.Extensions
{
    /// <summary>
    /// string扩展
    /// </summary>
    public static class StringExtension
    {
        /// <summary>
        /// 首字母转小写
        /// </summary>
        /// <param name="str"></param>
        /// <returns></returns>
        public static string FirstLowerCase(this string str)
        {
            if (string.IsNullOrWhiteSpace(str))
            {
                return str;
            }
            str = str.Substring(0, 1).ToLower() + str.Substring(1);
            return str;
        }
    }
}
